// @ts-ignore
/* eslint-disable */
import request from '@/utils/request'

/** 此处后端没有提供注释 GET /searchAll/products */
export async function searchProductByName(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: SearchService.searchProductByNameParams,
  options?: { [key: string]: any }
) {
  return request<Record<string, any>>(`/search/searchAll/products`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 GET /searchAll/query */
export async function searchAll(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: SearchService.searchAllParams,
  options?: { [key: string]: any }
) {
  return request<SearchService.SearchResultDTO[]>(`/search/searchAll/query`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}
